﻿/**
 * Console
 * 
 * @author		Allen Chou
 * @version		0.0.1 (last update: Aug 29 2008)
 * @link        http://cjcat.blogspot.com
 * @link		http://cjcat2266.deviantart.com
 */

package idv.cjcat.display {
	import flash.display.*;
	import flash.events.*;
	import flash.geom.*;
	import flash.text.*;
	
	public class Console extends MovieClip {
		 
		protected var output:Output;
		
		public function Console() {
			output = new Output(stage.stageWidth, stage.stageHeight, true, 0, 1);
			output.textField.type = TextFieldType.INPUT;
			addChild(output);
		}
		
		public function print(str:*):void { output.print(str); }
		public function println(str:*):void { output.print(str); }
		public function endl():void { output.endl(); }
		
	}
}